package com.motus.pm.vo;

/**
 * PmMeetingEmpId entity. @author MyEclipse Persistence Tools
 */

public class PmMeetingEmpId implements java.io.Serializable {

	// Fields

	private PmMeetingInfo pmMeetingInfo;
	private MotusEmpInfo motusEmpInfo;

	// Constructors

	/** default constructor */
	public PmMeetingEmpId() {
	}

	/** full constructor */
	public PmMeetingEmpId(PmMeetingInfo pmMeetingInfo, MotusEmpInfo motusEmpInfo) {
		this.pmMeetingInfo = pmMeetingInfo;
		this.motusEmpInfo = motusEmpInfo;
	}

	// Property accessors

	public PmMeetingInfo getPmMeetingInfo() {
		return this.pmMeetingInfo;
	}

	public void setPmMeetingInfo(PmMeetingInfo pmMeetingInfo) {
		this.pmMeetingInfo = pmMeetingInfo;
	}

	public MotusEmpInfo getMotusEmpInfo() {
		return this.motusEmpInfo;
	}

	public void setMotusEmpInfo(MotusEmpInfo motusEmpInfo) {
		this.motusEmpInfo = motusEmpInfo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PmMeetingEmpId))
			return false;
		PmMeetingEmpId castOther = (PmMeetingEmpId) other;

		return ((this.getPmMeetingInfo() == castOther.getPmMeetingInfo()) || (this
				.getPmMeetingInfo() != null
				&& castOther.getPmMeetingInfo() != null && this
				.getPmMeetingInfo().equals(castOther.getPmMeetingInfo())))
				&& ((this.getMotusEmpInfo() == castOther.getMotusEmpInfo()) || (this
						.getMotusEmpInfo() != null
						&& castOther.getMotusEmpInfo() != null && this
						.getMotusEmpInfo().equals(castOther.getMotusEmpInfo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getPmMeetingInfo() == null ? 0 : this.getPmMeetingInfo()
						.hashCode());
		result = 37
				* result
				+ (getMotusEmpInfo() == null ? 0 : this.getMotusEmpInfo()
						.hashCode());
		return result;
	}

}